CMAKE_MINIMUM_REQUIRED(VERSION 3.17)

PROJECT(WINDOWS)
SET(CMAKE_C_EXTENSIONS OFF)
SET(CMAKE_CXX_EXTENSIONS OFF)

ADD_LIBRARY(WINDOWS INTERFACE)
ADD_LIBRARY(LIBRARIES::WINDOWS ALIAS WINDOWS)
TARGET_COMPILE_DEFINITIONS(WINDOWS INTERFACE SJR_OS_WINDOWS)
TARGET_COMPILE_DEFINITIONS(WINDOWS INTERFACE _WINSOCK_DEPRECATED_NO_WARNINGS)
TARGET_COMPILE_DEFINITIONS(WINDOWS INTERFACE _CRT_SECURE_NO_WARNINGS)
TARGET_LINK_LIBRARIES(WINDOWS INTERFACE
        ws2_32
        CRYPT32
        Iphlpapi)